package com.hu.common.util.serializer;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * @author qiangt
 * @date 2023/8/31
 * @apiNote
 */
public class Test {
    public static void main(String[] args) throws JsonProcessingException {
        JobLog jobLog = new JobLog();
        jobLog.setId(1L);
        jobLog.setState(JobLogState.Success);

        ObjectMapper objectMapper = new ObjectMapper();
        String s = objectMapper.writeValueAsString(jobLog);
        System.out.println(s);
    }
}
